dict1 = {}
dict2 = {}
key = int(1)
while key <= 50:
    dict1[key] = key * key
    key += 1

for key, value in dict1.items():
    if value % 6 == 0:
        dict2[key] = value

print(dict2)
